package com.erp.sell.domain;

import com.erp.common.annotation.Excel;
import com.erp.products.productlist.domain.ErpProducts;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * --- 不丢始终 ---
 *
 * @author lzx
 * @date 2025/9/5
 * @desc sell模块查询使用的VO类.修改类名减少歧义
 */
@Data
public class ErpSalProductsVO extends ErpProducts {
    /** 购买数量 */
    @Excel(name = "购买数量")
    private int count;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("productImage", getProductImage())
                .append("productName", getProductName())
                .append("category", getCategory())
                .append("productType", getProductType())
                .append("price", getPrice())
                .append("unit", getUnit())
                .append("productAttribute", getProductAttribute())
                .append("status", getStatus())
                .append("productDetail", getProductDetail())
                .append("count", getCount())
                .toString();
    }
}
